package com.ssti.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
//    响应结构
    @ResponseBody
//    请求
    @RequestMapping("/jiangyingying")
    public String jiangyingying(){
        String str="你好，姜莹莹";
//        System.out.println("我接受了Hello请求。");
        return str;
    }
    @RequestMapping("/hello1")
    public void hello1(){
        System.out.println("我接受了Hello请求。");
    }
    @RequestMapping("/hello2")
    public void hello2(){
        System.out.println("我接受了Hello请求。");
    }

}
